package com.LinkedList;

public class UserInfo {
    public String stuID;
    public String stuName;
    public String stuBirthday;
    public String stuClass;
    public UserInfo stuNext;

    public UserInfo(String stuID, String stuName, String stuBirthday, String stuClass, UserInfo stuNext) {
        this.stuID = stuID;
        this.stuName = stuName;
        this.stuBirthday = stuBirthday;
        this.stuClass = stuClass;
        this.stuNext = stuNext;
    }

    public UserInfo(String stuID, String stuName, String stuBirthday, String stuClass) {
        this(stuID, stuName, stuBirthday, stuClass, null);
    }

    public UserInfo() {

    }

    public String toString() {
        return "学号: " + stuID + "\n" + "姓名: " + stuName + "\n" + "生日: " + stuBirthday + "\n" + "班级: " + stuClass;
    }
}
